home *** CD-ROM | disk | FTP | other *** search
- /* $XConsortium: VarargsI.h,v 1.8 89/12/14 14:55:30 swick Exp $ */
- /*
-
- Copyright 1985, 1986, 1987, 1988, 1989 by the
- Massachusetts Institute of Technology
-
- Permission to use, copy, modify, and distribute this
- software and its documentation for any purpose and without
- fee is hereby granted, provided that the above copyright
- notice appear in all copies and that both that copyright
- notice and this permission notice appear in supporting
- documentation, and that the name of M.I.T. not be used in
- advertising or publicity pertaining to distribution of the
- software without specific, written prior permission.
- M.I.T. makes no representations about the suitability of
- this software for any purpose. It is provided "as is"
- without express or implied warranty.
-
- */
-
- #ifndef _VarargsI_h_
- #define _VarargsI_h_
-
- #ifdef __HC386__ /* JDC 92/02/21 */
- #undef Va_start
- #define NeedFunctionPrototypes 1
- #undef __STDC__
- #endif
-
- /* temporary hack for varargs stuff 'till function prototypes are fully implemented */
- #if NeedVarargsPrototypes
- #undef NeedFunctionPrototypes
- #define NeedFunctionPrototypes 1
- #endif
-
- #ifdef __STDC__ /* ANSI way */
- # ifndef MISSING_STDARG_H
- # include <stdarg.h>
- # endif
- # define Va_start(a,b) va_start(a,b)
- #else /* Non-ansi - MetaWare Way JDC */
- # include <varargs.h>
- # define Va_start(a,b) va_start(a)
- #endif
-
-
-
- typedef struct _XtTypedArg {
- String name;
- String type;
- XtArgVal value;
- int size;
- } XtTypedArg;
-
- /* private routines */
-
- extern void _XtCountVaList(
- #if NeedFunctionPrototypes
- va_list /*var*/, int* /*total_count*/, int* /*typed_count*/
- #endif
- );
-
- extern void _XtVaToArgList(
- #if NeedFunctionPrototypes
- Widget /*widget*/, va_list /*var*/, int /*max_count*/, ArgList* /*args_return*/, Cardinal* /*num_args_return*/
- #endif
- );
-
- extern void _XtVaToTypedArgList(
- #if NeedFunctionPrototypes
- va_list /*var*/, int /*count*/, XtTypedArgList* /*args_return*/, Cardinal* /*num_args_return*/
- #endif
- );
-
- extern XtTypedArgList _XtVaCreateTypedArgList(
- #if NeedFunctionPrototypes
- va_list /*var*/, int /*count*/
- #endif
- );
-
- #endif /* _VarargsI_h_ */